<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
<title>登录</title>
<style type="text/css">
	.loginBtn {
		
	}
</style>
<script type="text/javascript" src="${path}/js/common/jquery-1.8.2.js"></script>
<script src="${path}/js/common/jquery.validate.js" type="text/javascript"></script>
<script src="${path}/js/common/messages_zh.js" type="text/javascript"></script>
<script src="${path}/js/common/jquery.metadata.js" type="text/javascript"></script>

<script type="text/javascript" src="${path}/js/common/jquery-ui-1.8.23.custom.min-update.js"></script>
<script type="text/javascript" src="${path}/js/common/jquery.alert.js"></script>
<script type="text/javascript">

function loadimage(){ 
	document.getElementById("randImage").src ="${path}/js/temp/code.jsp?"+Math.random(); 
}

$(function(){
	$("#loginForm").validate();
	var errorMessage= '${errorMessage}';
	if(errorMessage.length>10){
		alert(errorMessage);
	}else{
		$('#errorMessage').html(errorMessage);
	}
});
</script>
<link type="text/css" href="${path}/css/common/alert.css" rel="stylesheet" />
<link type="text/css" href="${path}/css/common/jquery-ui-1.9.2.custom.css" rel="Stylesheet" />
<link href="${path}/css/common/i_login.css" rel="stylesheet" type="text/css" />

</head>
<body>

<div class="skin">
	<div class="login_1" style="background: none;"></div>
	<div class="login_2" style="background: none;"></div>
	<div class="login_3" style="background: none;">
		<form id="loginForm" action="${path}/mc/userlogin" method="post">
			<ul>	
				<li>
					<label>用户名：</label>
					<input type="text" name="entity.account" class="txt {required:true}"  size="20" value="${loginName}" />
				</li>
				<li>
					<label style="margin-right: 14px;">密码：</label>
					<input type="password" name="entity.password" class="txt {required:true}" size="21" /> <!-- <a class="findpwd"  onclick="findpwd()">找回密码</a> -->
				</li>
				<li>
					<label>验证码：</label>
					<input name="code" type="text" class="txt {required:true}" size="11"/>
					<img onclick="loadimage()" alt="code..." id="randImage" src="${path}/js/temp/code.jsp" width="60" height="20" border="1" align="middle" style="margin-bottom: 8px;" />
					&nbsp;&nbsp;
					<span style="color: red;" id="errorMessage"></span>
				</li>
				<li style="padding-left: 62px;">
					<input type="submit" class="sub" value="登录" style="margin-right:1px;" /><input type="reset" class="sub" value="重置" /> 
				</li>
			</ul>
		</form>
	 	<c:remove var="errorMessage" scope="session"/> 
	 	<c:remove var="loginName" scope="session"/> 
	</div>
</div>
<div style="text-align: center;font-size: 12px;">
	<p style="padding-left: 120px;">Copyrights&nbsp;(C)2016广州悦驰文化发展有限公司&nbsp;版权所有</p>
	<p style="padding-left: 120px;">版本号：1.1</p>
</div>
</body>
</html>